#ifndef UserBridgeH
#define UserBridgeH

#include <dbtables.hpp>

typedef enum {ADMIN, SELLER} UserType;

class TUser : public TObject
{
   public:
      AnsiString name;
      AnsiString password;
      UserType type;
};

class TUserBridge
{
   public:
      TUserBridge( TDatabase * database);
      ~TUserBridge();
      TUser* GetUser(AnsiString name);

   private:
      TQuery * qryGetUser;
};

#endif
 